Which of the following is correct slicing operation to extract every kth character from the string str1 starting from n and ending at m-1.
1.str1[: : k]
2.str1[n : m+1 : k]
3.str1[n : m : k ]
4.str1[m : n : k ]
Answer:3
Posted Date:-2021-12-11 19:10:01